
public abstract class Heap {
	
	int []dataArray;
	int nextIndex;
	
	public Heap(int size)
	{
		dataArray = new int[size];
		nextIndex = 0;
	}

	protected int ExtractRoot()
	{
		return dataArray[0];
	}
	
	public abstract void Insert(int value);	
	
	public abstract void DeleteRoot();
	
	public int Size()
	{
		return nextIndex;
	}
}
